package net.guerlab.smart.wx.core.searchparams;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import net.guerlab.smart.wx.core.enums.WxAppType;
import net.guerlab.spring.searchparams.AbstractSearchParams;
import net.guerlab.spring.searchparams.SearchModel;
import net.guerlab.spring.searchparams.SearchModelType;

import javax.persistence.Column;

/**
 * 微信应用搜索参数
 *
 * @author guer
 */
@Getter
@Setter
@ApiModel("微信应用搜索参数")
public class WxAppSearchParams extends AbstractSearchParams {

    /**
     * appId
     */
    @ApiModelProperty("appId")
    private String appId;

    /**
     * 微信应用类型
     */
    @ApiModelProperty("微信应用类型")
    private WxAppType wxAppType;

    /**
     * 启用标签
     */
    @ApiModelProperty("启用标签")
    private Boolean enable;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    @Column(name = "appName")
    @SearchModel(SearchModelType.LIKE)
    private String appNameLike;
}
